package com.gtt.jr.repository.domain;

import javax.persistence.Entity;
import javax.persistence.Enumerated;
import javax.persistence.OneToOne;

import com.gtt.jr.constants.CommentsType;
import com.gtt.jr.repository.domain.base.BaseDomain;

/**
 * Comments Bridge Domain
 * 
 * @author Michael(gao12581@sina.com)
 * @date 2011-3-2 08:55:03
 * 
 */
@Entity
public class CommentsBridge extends BaseDomain {

	private static final long serialVersionUID = 4215927314827076149L;

	@Enumerated
	private CommentsType type;

	@OneToOne
	private Comments comments;

	private Long refId;

	public CommentsType getType() {
		return type;
	}

	public void setType(CommentsType type) {
		this.type = type;
	}

	public Comments getComments() {
		return comments;
	}

	public void setComments(Comments comments) {
		this.comments = comments;
	}

	public Long getRefId() {
		return refId;
	}

	public void setRefId(Long refId) {
		this.refId = refId;
	}

}
